package Fachada;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JButton;
import java.awt.Font;
import javax.swing.SpringLayout;
import javax.swing.JTextField;
import javax.swing.JLabel;
import java.awt.Toolkit;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class TelaInicial extends JFrame {

	private JPanel contentPane;

	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					TelaInicial frame = new TelaInicial();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public TelaInicial() {
		setTitle("PhotoFace");
		setFont(new Font("Tahoma", Font.BOLD, 12));
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JButton btnMontarFoto = new JButton("Montar Foto");
		btnMontarFoto.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				
				MontarFoto mt = new MontarFoto();
				mt.setVisible(true);
			}
		});
		btnMontarFoto.setFont(new Font("Tahoma", Font.BOLD, 12));
		btnMontarFoto.setBounds(158, 118, 136, 23);
		contentPane.add(btnMontarFoto);
		
		JButton btnVizualizarFoto = new JButton("Visualizar Foto");
		btnVizualizarFoto.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				
				VisualizarFoto vf = new VisualizarFoto();
				vf.setVisible(true);
			}
		});
		btnVizualizarFoto.setFont(new Font("Tahoma", Font.BOLD, 12));
		btnVizualizarFoto.setBounds(158, 188, 141, 23);
		contentPane.add(btnVizualizarFoto);
		
		JLabel lblPhotoface = new JLabel("PhotoFace");
		lblPhotoface.setFont(new Font("Tempus Sans ITC", Font.BOLD, 50));
		lblPhotoface.setBounds(97, 30, 257, 37);
		contentPane.add(lblPhotoface);
	}
}
